projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e4a014
)
(insert_from_string_1): Check gap size against number
author
Andreas Schwab
<schwab@suse.de>
Wed, 4 Aug 1999 11:26:17 +0000
(11:26 +0000)
committer
Andreas Schwab
<schwab@suse.de>
Wed, 4 Aug 1999 11:26:17 +0000
(11:26 +0000)
of outgoing bytes, not incoming bytes.
src/insdel.c
patch
|
blob
|
history
diff --git
a/src/insdel.c
b/src/insdel.c
index d331c37d96c4a1a2b3c66a24e81702013756cac8..efb3303a0708512726f19cb468752d16a7e9bb47 100644
(file)
--- a/
src/insdel.c
+++ b/
src/insdel.c
@@
-1251,7
+1251,7
@@
insert_from_string_1 (string, pos, pos_byte, nchars, nbytes,
if (PT != GPT)
move_gap_both (PT, PT_BYTE);
- if (GAP_SIZE < nbytes)
+ if (GAP_SIZE <
outgoing_
nbytes)
make_gap (outgoing_nbytes - GAP_SIZE);
UNGCPRO;